import java.util.Scanner;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        System.out.println("请默默地想一个1-10000之间的数字，记在心中，不要告诉任何人...！！！");
        System.out.println("现在，请把你心中的数输入在这里，请放心，我会帮你保守这个秘密。请输入：");
        Scanner reader=new Scanner(System.in);
        int answer=reader.nextInt();
        boolean successful=false;
        System.out.println("太棒啦。命运的齿轮开始转动了，请挑战14次把这个数字猜出来。挑战成功可以召唤神龙");
        for(int i=1;i<=14;i++){
            System.out.println("这是第"+i+"次机会，请写出你的猜测：");
            int guessNumber=reader.nextInt();
            if(guessNumber>answer){
                System.out.println("太大了。");
            } else if (guessNumber<answer) {
                System.out.println("太小了。");
            }else{
                System.out.println("恭喜你，答对了！");
                break;
            }
            if(!successful){
                System.out.println("很遗憾，挑战失败了，下次再来吧！");
            }

        }
    }
}